Order.transaction do
(1..100).each do |i|
  Order.create(:name => "Cutomer #{i}" ,:address =>"#{i} Main street",:email => "customer#{i}@example.com",:pay_type=> "Check")
end
end